

package com.maoshi.shop.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.maoshi.shop.bean.app.dto.NoticeDto;
import com.maoshi.shop.bean.model.Notice;

import java.util.List;

/**
 * 公告管理
 *
 * @author hzm
 * @date 2019-04-18 21:21:40
 */
public interface NoticeService extends IService<Notice> {

    List<Notice> listTopNoticeByShopId(Long shopId);

    void removeTopNoticeListCacheByShopId(Long shopId);

    Page<NoticeDto> pageNotice(Page<NoticeDto> page,Long shopId);

    Notice getNoticeById(Long noticeId);

    void removeNoticeCacheById(Long noticeId);

    void removeByIdAndShopId(Long id, long shopId);
}
